package com.example.vehiclemanagesystem.service.Impl;

import com.example.vehiclemanagesystem.dao.NoticeDao;
import com.example.vehiclemanagesystem.entity.Notice;
import com.example.vehiclemanagesystem.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeServiceImpl implements NoticeService {
    @Autowired
    private NoticeDao noticeDao;
    @Override
    public void addNewNotice(Notice notice) {
        noticeDao.addNewNotice(notice);
    }

    @Override
    public List<Notice> allNotice() {
        return noticeDao.allNotice();
    }

    @Override
    public List<Notice> selectNotice(String name) {
        return noticeDao.selectNotice(name);
    }
}
